﻿
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="GP.aspx.vb" Inherits="BolaoF1_2.GP" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        GP<br />
    
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="IdGP" DataSourceID="GPs">
            <Columns>
                <asp:BoundField DataField="DtTreino" HeaderText="DtTreino (UTC)" 
                    SortExpression="DtTreino" />
                <asp:BoundField DataField="DtCorrida" HeaderText="DtCorrida (UTC)" 
                    SortExpression="DtCorrida" />
                <asp:BoundField DataField="GP" HeaderText="GP" SortExpression="GP" />
                <asp:HyperLinkField DataNavigateUrlFields="IdGP" 
                    DataNavigateUrlFormatString="Palpite.aspx?IdGP={0}" HeaderText="Palpitar" 
                    Text="Palpitar" />
                <asp:HyperLinkField DataNavigateUrlFields="IdGP" 
                    DataNavigateUrlFormatString="TodosPalpites.aspx?IdGP={0}" HeaderText="Xeretar" 
                    Text="Xeretar" />
            </Columns>
        </asp:GridView>
        <asp:AccessDataSource ID="GPs" runat="server" DataFile="~/App_Data/lada.mdb" 
            
            SelectCommand="SELECT GP.IdGP, GP.GP, GP.DtTreino, GP.DtCorrida, GP.Temporada FROM (GP INNER JOIN TemporadaCorrente ON GP.Temporada = TemporadaCorrente.Corrente) ORDER BY GP.DtCorrida">
        </asp:AccessDataSource>
    
    </div>
    </form>
</body>
</html>
